<?php

namespace Entity;

class Domain extends \Home {

	public $www;

	public $admin;

	public $wap;

	public $api;

    public $statistics;

	public function __construct() {
		$serverName = $_SERVER['SERVER_NAME'];
		$d = strstr($serverName, '.');
		$this->www = 'http://www' . $d;
		$this->admin = 'http://admin' . $d;
		$this->wap = 'http://wap' . $d;
		$this->api = 'http://api' . $d;
        $this->statistics = 'http://statistics' . $d;
	}

}